/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package model;

import java.util.List;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.junit.Assert.*;

/**
 *
 * @author Owner
 */
public class GraphTest {
    
    private static model.Graph<Integer> graphTest1;
    private model.Graph<Integer> graphTest2;

    public GraphTest() {
    }
    
    @BeforeClass
    public static void setUpClass() {
        graphTest1 = new model.Graph<>();
    }
    
    @AfterClass
    public static void tearDownClass() {
        graphTest1 = null;
    }
    
    @Before
    public void setUp() {
        Graph temp = new Graph();
        graphTest2 = new model.Graph<>(temp);
    }
    
    @After
    public void tearDown() {
        graphTest2 = null;
    }

    /**
     * Test of getEdges method, of class Graph.
     */
    @Test
    public void testGetEdges() {
        System.out.println("getEdges");
        Graph graphTest2 = new Graph();
        List<Edge> expResult = null;
        List<Edge> result = graphTest2.getEdges();
        assertEquals(expResult, result);
    }

    /**
     * Test of getVertices method, of class Graph.
     */
    @Test
    public void testGetVertices() {
        System.out.println("getVertices");
        Graph graphTest2 = new Graph();
        List<Vertex> expResult = null;
        List<Vertex> result = graphTest2.getVertices();
        assertEquals(expResult, result);

    }

    /**
     * Test of addEdge method, of class Graph.
     */
    @Test
    public void testAddEdge() {
        System.out.println("addEdge");
        Graph instance = new Graph();
        instance.addEdge(null);
    }

    /**
     * Test of addVertex method, of class Graph.
     */
    @Test
    public void testAddVertex() {
        System.out.println("addVertex");
        Graph instance = new Graph();
        instance.addVertex(null);
    }

    /**
     * Test of toString method, of class Graph.
     */
    @Test
    public void testToString() {
        System.out.println("toString");
        Graph instance = new Graph();
        String expResult = "";
        String result = instance.toString();
        assertEquals(expResult, result);
    }

    /**
     * Test of hashCode method, of class Graph.
     */
    @Test
    public void testHashCode() {
        System.out.println("hashCode");
        Graph test = new Graph();
        int expResult = -2114996533;
        int result = test.hashCode();
        assertEquals(expResult, result);
    }

    /**
     * Test of equals method, of class Graph.
     */
    @Test
    public void testEquals() {
        System.out.println("equals");
        Object object = null;
        Graph instance = new Graph();
        boolean expResult = false;
        boolean result = instance.equals(object);
        assertEquals(expResult, result);
    }
    
}
